package com.lhkj.ct.meta.modules.psychology.model.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.lhkj.ct.base.enums.DeleteStatus;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Tolerate;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 测验记录
 * </p>
 *
 * @author jobob
 * @since 2023-10-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="TblScalePsyRecord对象", description="测验记录")
@Builder
public class TblScalePsyRecord implements Serializable {

    @Tolerate
    public TblScalePsyRecord() {
    }

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "测验记录id")
    private String id;

    @ApiModelProperty(value = "档案id")
    private String patId;

    @ApiModelProperty(value = "量表id")
    private String scaleId;

    @ApiModelProperty(value = "测验开始时间")
    private Date startTime;

    @ApiModelProperty(value = "测验截止时间")
    private Date closingTime;

    @ApiModelProperty(value = "测验类型", notes = "测验分配:1.日常测验 2.普测")
    private Integer psyType;

    @ApiModelProperty(value = "开单医生(工号)")
    private String billDoctor;

    @ApiModelProperty(value = "开单科室")
    private String billDept;

    @ApiModelProperty(value = "开单时间")
    private LocalDateTime billTime;

    @ApiModelProperty(value = "执行人")
    private String executor;

    @ApiModelProperty(value = "分配人")
    private String createBy;

    @ApiModelProperty(value = "分配时间")
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "是否删除 1.已删除 0.未删除")
    private DeleteStatus delFlag;

}
